package com.patchmanage.back.entity;

    import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* <p>
    * 
    * </p>
*
* @author huizhao
* @since 2021-07-16
*/
    @ApiModel(value="Patch对象", description="")
    public class Patch implements Serializable {

    private static final long serialVersionUID = 1L;

            @ApiModelProperty(value = "自增id")
            @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

            @ApiModelProperty(value = "补丁编号")
    private String patchNo;

            @ApiModelProperty(value = "补丁概要")
    private String abs;

    private String absCn;

            @ApiModelProperty(value = "危险等级（0低1中2高 3严重）")
    private Integer dangerLv;

            @ApiModelProperty(value = "适配操作系统（1Windows，2linux  centos，3Linux  ubuntu）")
    private String adaptationOs;

            @ApiModelProperty(value = "补丁类型[0:操作系统1应用]")
    private String patchTypes;

            @ApiModelProperty(value = "补丁组id")
    private Integer patchGroupId;

            @ApiModelProperty(value = "补丁组名称")
    private String patchGroupName;

            @ApiModelProperty(value = "0不是 1正式标记")
    private Integer isOfficialMark;

            @ApiModelProperty(value = "补丁大小")
    private Integer patchSize;

            @ApiModelProperty(value = "发布厂商")
    private String publisher;

            @ApiModelProperty(value = "是否在黑名单  0否1是")
    private Integer isBlacklist;

            @ApiModelProperty(value = "拉黑原因")
    private String blacklistCause;

            @ApiModelProperty(value = "发布时间")
    private LocalDateTime publishingTime;

            @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

            @ApiModelProperty(value = "cve的编号")
    private String cveId;

            @ApiModelProperty(value = "cve漏洞描述")
    private String cveSummary;

            @ApiModelProperty(value = "cve的危险等级")
    private String cveCvss3Severity;

            @ApiModelProperty(value = "cve的分数")
    private Float cveCvss3Score;

            @ApiModelProperty(value = "cve发布时间")
    private LocalDateTime cvePublishTime;

            @ApiModelProperty(value = "cve修改时间")
    private LocalDateTime cveModifyTime;

            @ApiModelProperty(value = "cve源连接地址")
    private String cveSourceLink;

            @ApiModelProperty(value = "cve的标题")
    private String cveTitle;

            @ApiModelProperty(value = "cve影响的包")
    private String cveAffectPackages;

            @ApiModelProperty(value = "转正时间")
    private LocalDateTime regularTime;

            @ApiModelProperty(value = "预转正时间")
    private LocalDateTime prepareRegularTime;

            @ApiModelProperty(value = "自动转正 小时数")
    private Integer autoOfficialHour;

        public Integer getId() {
        return id;
        }

            public void setId(Integer id) {
        this.id = id;
        }
        public String getPatchNo() {
        return patchNo;
        }

            public void setPatchNo(String patchNo) {
        this.patchNo = patchNo;
        }
        public String getAbs() {
        return abs;
        }

            public void setAbs(String abs) {
        this.abs = abs;
        }
        public String getAbsCn() {
        return absCn;
        }

            public void setAbsCn(String absCn) {
        this.absCn = absCn;
        }
        public Integer getDangerLv() {
        return dangerLv;
        }

            public void setDangerLv(Integer dangerLv) {
        this.dangerLv = dangerLv;
        }
        public String getAdaptationOs() {
        return adaptationOs;
        }

            public void setAdaptationOs(String adaptationOs) {
        this.adaptationOs = adaptationOs;
        }
        public String getPatchTypes() {
        return patchTypes;
        }

            public void setPatchTypes(String patchTypes) {
        this.patchTypes = patchTypes;
        }
        public Integer getPatchGroupId() {
        return patchGroupId;
        }

            public void setPatchGroupId(Integer patchGroupId) {
        this.patchGroupId = patchGroupId;
        }
        public String getPatchGroupName() {
        return patchGroupName;
        }

            public void setPatchGroupName(String patchGroupName) {
        this.patchGroupName = patchGroupName;
        }
        public Integer getIsOfficialMark() {
        return isOfficialMark;
        }

            public void setIsOfficialMark(Integer isOfficialMark) {
        this.isOfficialMark = isOfficialMark;
        }
        public Integer getPatchSize() {
        return patchSize;
        }

            public void setPatchSize(Integer patchSize) {
        this.patchSize = patchSize;
        }
        public String getPublisher() {
        return publisher;
        }

            public void setPublisher(String publisher) {
        this.publisher = publisher;
        }
        public Integer getIsBlacklist() {
        return isBlacklist;
        }

            public void setIsBlacklist(Integer isBlacklist) {
        this.isBlacklist = isBlacklist;
        }
        public String getBlacklistCause() {
        return blacklistCause;
        }

            public void setBlacklistCause(String blacklistCause) {
        this.blacklistCause = blacklistCause;
        }
        public LocalDateTime getPublishingTime() {
        return publishingTime;
        }

            public void setPublishingTime(LocalDateTime publishingTime) {
        this.publishingTime = publishingTime;
        }
        public LocalDateTime getUpdateTime() {
        return updateTime;
        }

            public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
        }
        public String getCveId() {
        return cveId;
        }

            public void setCveId(String cveId) {
        this.cveId = cveId;
        }
        public String getCveSummary() {
        return cveSummary;
        }

            public void setCveSummary(String cveSummary) {
        this.cveSummary = cveSummary;
        }
        public String getCveCvss3Severity() {
        return cveCvss3Severity;
        }

            public void setCveCvss3Severity(String cveCvss3Severity) {
        this.cveCvss3Severity = cveCvss3Severity;
        }
        public Float getCveCvss3Score() {
        return cveCvss3Score;
        }

            public void setCveCvss3Score(Float cveCvss3Score) {
        this.cveCvss3Score = cveCvss3Score;
        }
        public LocalDateTime getCvePublishTime() {
        return cvePublishTime;
        }

            public void setCvePublishTime(LocalDateTime cvePublishTime) {
        this.cvePublishTime = cvePublishTime;
        }
        public LocalDateTime getCveModifyTime() {
        return cveModifyTime;
        }

            public void setCveModifyTime(LocalDateTime cveModifyTime) {
        this.cveModifyTime = cveModifyTime;
        }
        public String getCveSourceLink() {
        return cveSourceLink;
        }

            public void setCveSourceLink(String cveSourceLink) {
        this.cveSourceLink = cveSourceLink;
        }
        public String getCveTitle() {
        return cveTitle;
        }

            public void setCveTitle(String cveTitle) {
        this.cveTitle = cveTitle;
        }
        public String getCveAffectPackages() {
        return cveAffectPackages;
        }

            public void setCveAffectPackages(String cveAffectPackages) {
        this.cveAffectPackages = cveAffectPackages;
        }
        public LocalDateTime getRegularTime() {
        return regularTime;
        }

            public void setRegularTime(LocalDateTime regularTime) {
        this.regularTime = regularTime;
        }
        public LocalDateTime getPrepareRegularTime() {
        return prepareRegularTime;
        }

            public void setPrepareRegularTime(LocalDateTime prepareRegularTime) {
        this.prepareRegularTime = prepareRegularTime;
        }
        public Integer getAutoOfficialHour() {
        return autoOfficialHour;
        }

            public void setAutoOfficialHour(Integer autoOfficialHour) {
        this.autoOfficialHour = autoOfficialHour;
        }

    @Override
    public String toString() {
    return "Patch{" +
            "id=" + id +
            ", patchNo=" + patchNo +
            ", abs=" + abs +
            ", absCn=" + absCn +
            ", dangerLv=" + dangerLv +
            ", adaptationOs=" + adaptationOs +
            ", patchTypes=" + patchTypes +
            ", patchGroupId=" + patchGroupId +
            ", patchGroupName=" + patchGroupName +
            ", isOfficialMark=" + isOfficialMark +
            ", patchSize=" + patchSize +
            ", publisher=" + publisher +
            ", isBlacklist=" + isBlacklist +
            ", blacklistCause=" + blacklistCause +
            ", publishingTime=" + publishingTime +
            ", updateTime=" + updateTime +
            ", cveId=" + cveId +
            ", cveSummary=" + cveSummary +
            ", cveCvss3Severity=" + cveCvss3Severity +
            ", cveCvss3Score=" + cveCvss3Score +
            ", cvePublishTime=" + cvePublishTime +
            ", cveModifyTime=" + cveModifyTime +
            ", cveSourceLink=" + cveSourceLink +
            ", cveTitle=" + cveTitle +
            ", cveAffectPackages=" + cveAffectPackages +
            ", regularTime=" + regularTime +
            ", prepareRegularTime=" + prepareRegularTime +
            ", autoOfficialHour=" + autoOfficialHour +
    "}";
    }
}
